export const PAGE_CODE = 'dcs-sales-KDSaleShipment';
import {PAGE} from '../constants';
import moment from 'moment';

export const lastWeek = [
    moment()
        .startOf('month').format('YYYY-MM-DD'),
    moment().endOf('day')
];
export const PERMISSION = {
    add: 'add',
    update: 'update',
    export: 'export',
    abandon: 'abandon',
    signned: 'signned',
    dateSupplement: 'datesupplement'
};
export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    brandId: '',
    salePackingListCode: '',
    partShipmentStatus: [],
    declarePlace: '',
    declareType: [],
    createTime: lastWeek,
    actualShipmentDate: lastWeek,
    pageIndex: PAGE.index,
    pageSize: PAGE.smallSize,
    sortField: '',
    isDesc: '',
};
const FORM_ITEM_COLON = true;
const FORM_ITEM_LAYOUT_OPTIONS_P = Object.freeze({
    labelCol: {
        xxl: {span: 8},
        xl: {span: 9},
        md: {span: 8}
    },
    wrapperCol: {
        xxl: {span: 15},
        xl: {span: 15},
        md: {span: 16}
    }
});
export const FORM_OPTIONS_P = Object.freeze({
    /* Col 参数 */
    col: Object.freeze({
        xl: 10,
        md: 12
    }),
    /* Form 参数*/
    item: Object.freeze({
        ...FORM_ITEM_LAYOUT_OPTIONS_P,
        colon: FORM_ITEM_COLON
    })
});
